how to assign boolean value in python